
// src/tabbar/TabbarPage.tsx
import React from 'react';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import HomePage from '../components/HomePage';
import SettingPage from '../components/SettingsPage';

const Tab = createBottomTabNavigator();

const TabbarPage = () => {
  return (
    <Tab.Navigator
      screenOptions={{
        tabBarActiveTintColor: '#ff0000',
        title:'123',
      }}
    >
      <Tab.Screen
        name="HomePage"
        component={HomePage}
        options={{ title: '首页', headerShown: true }}
      />
      <Tab.Screen
        name="SettingPage"
        component={SettingPage}
        options={{ title: '设置', headerShown: true }}
      />
    </Tab.Navigator>
  );
};

export default TabbarPage;